<?php

namespace Home\Model;

use Think\Model\RelationModel;

/**
 * Category关联模型
 */
class CategoryModel extends RelationModel {
    // 关联模型
    protected $_link = array(
        'shoses' => array(
            'mapping_type' => self::HAS_MANY,
            'class_name' => 'Shose',
            'foreign_key' => 'category_id',
        )
    );
}
